var
  Layer: TIWCGJQMapQueryLayer;
begin
  IWCGJQMapQueryWidgets.Widget:= mqwLayerManager;
  IWCGJQMapQueryWidgets.Map:= IWCGJQMapQuery;
  Layer:= IWCGJQMapQuery.MapQueryOptions.Layers.Add;
  Layer.LayerType:= mqltOSM;
  Layer.LayerOptionsOSM.Label_:= 'OpenStreetMap';
  Layer.Legend.Url:= 'http://www.openstreetmap.org/images/osm_logo.png';
  Layer:= IWCGJQMapQuery.MapQueryOptions.Layers.Add;
  Layer.LayerType:= mqltWMS;
  Layer.LayerOptionsWMS.MinZoom:= 2;
  Layer.LayerOptionsWMS.Label_:= 'Population density 2010';
  Layer.LayerOptionsWMS.Url:= 'http://t1.edugis.nl/tiles/tilecache.py?map=maps/edugis/cache/population.map';
  Layer.LayerOptionsWMS.Layers:= 'Bevolkingsdichtheid_2010';
  Layer.Legend.Url:= 'http://mapserver.edugis.nl/cgi-bin/mapserv?map=maps/edugis/cache/population.map&version=1.1.1&service=WMS&'+
          'request=GetLegendGraphic&layer=Bevolkingsdichtheid_2010&format=image/png';
  Layer.Legend.Url:= 'http://www.openstreetmap.org/images/osm_logo.png';
end;